<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" session="false" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>admin</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/css/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/css/waybook.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/css/icon.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/css/custom.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/datepicker/datepicker.css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/jquery.ui.core.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/jquery.ui.effect.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/common.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/toolkit.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/core/validate.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/datepicker/datepicker.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/admin.js"></script>
</head>
<body>
<table id="admin_table"
	data-options="border:false, rownumbers:true, fit:true, fitColumns:true, nowrap:false, loadMsg:'正在加载...', 
		pagination:true, pagePosition:'top', sortName:'addTime', sortOrder:'asc'">
	<thead>
		<tr>
            <th data-options="field:'ck',checkbox:true"></th>
			<th data-options="field:'itemId', hidden:true">itemId</th>
            <th data-options="field:'p1'">所属区域</th>
            <th data-options="field:'p2'">所属公司</th>
            <th data-options="field:'p3'">账号名称</th>
            <th data-options="field:'p4', align:'center'">账号类型</th>
            <th data-options="field:'p5'">账号描述</th>
            <th data-options="field:'addTime', align:'center', sortable:true">添加时间</th>
		</tr>
	</thead>
</table> 

<div id="admin_div_search" class="easyui-window" title="搜索" style="width:380px;height:250px;padding:5px;" 
	data-options="iconCls:'icon-search',modal:true,top:0,collapsible:false,minimizable:false,maximizable:false,closed:true">
	<div class="easyui-layout" data-options="fit:true,border:false">
        <div class="div_window_content" data-options="region:'center',border:false">
            <div class="line"><label>所属区域</label>
				<input id="ipt_admin_search_p1" class="easyui-combotree" data-options="lines:true" style="width: 272px;" /></div>
            <div class="line"><label>所属公司</label>
				<input id="ipt_admin_search_p2" class="easyui-textbox" style="width: 272px;" /></div>
			<div class="line"><label>账号名称</label>
				<input id="ipt_admin_search_p3" class="easyui-textbox" style="width: 272px;"/></div>
			<div class="line"><label>添加时间</label>
				<input id="ipt_admin_search_begin" class="textbox" readonly="readonly" style="width: 132px;" />
				<input id="ipt_admin_search_end" class="textbox" readonly="readonly" style="width: 132px;" /></div>
        </div>
        <div class="div_window_foot" data-options="region:'south',border:false">
            <a class="easyui-linkbutton" data-options="iconCls:'icon-reset'" onclick="jsAdmin.resetSearch();" style="width:80px">重置</a>
            <a class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="jsAdmin.getPage(1, 20);" style="width:80px">搜索</a>
        </div>
    </div>
</div>

<div id="admin_div_add_edit" class="easyui-window" style="width:380px;height:400px;padding:5px;" 
	data-options="iconCls:'icon-add',modal:true,top:0,collapsible:false,minimizable:false,maximizable:false,closed:true">
	<div class="easyui-layout" data-options="fit:true,border:false">
        <div class="div_window_content" data-options="region:'center',border:false">
            <div class="line"><label>账号名称</label>
				<input id="admin_ipt_p1" class="easyui-textbox" 
				data-options="required:true,validType:'account'" style="width: 250px;" /></div>
            <div class="line"><label>账号描述</label>
				<input id="admin_ipt_p4" class="easyui-textbox" 
				data-options="validType:'length[0,16]',invalidMessage:'长度不超过16个字符。'" style="width: 250px;" /></div>
			<div class="line"><label>账号密码</label>
				<input id="admin_ipt_p2" class="easyui-textbox" type="password"
				data-options="required:true,validType:'account'" style="width: 250px;" /></div>
			<div class="line"><label>密码确认</label>
				<input id="admin_ipt_p3" class="easyui-textbox" type="password"
				data-options="required:true,validType:'equals[\'#admin_ipt_p2\']'" style="width: 250px;" /></div>
        </div>
        <div class="div_window_foot" data-options="region:'south',border:false">
            <a class="easyui-linkbutton" data-options="iconCls:'icon-reset'" onclick="jsAdmin.resetSaveOrEdit();" style="width:80px">重置</a>
            <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="jsAdmin.saveOrEdit($(this));" style="width:80px">确定</a>
        </div>
    </div>
</div>

<div id="admin_div_priv" class="easyui-window" style="width:800px;height:500px;" 
	data-options="iconCls:'icon-priv',title:'权限设置',modal:true,top:0,collapsible:false,minimizable:false,maximizable:true,closed:true">
	<div class="easyui-layout" data-options="fit:true,border:false">
		<div class="div_window_content" data-options="region:'center',border:false">
			<table id="admin_priv_table" class="easyui-treegrid"
				data-options="border:false, rownumbers:true, collapsible:true, fit:true, fitColumns:true, loadMsg:'正在加载...', 
					animate:true, singleSelect:false, idField:'itemId', treeField:'p1'">
				<thead>
					<tr>
			            <th data-options="field:'ck',checkbox:true"></th>
						<th data-options="field:'itemId', hidden:true">itemId</th>
			            <th data-options="field:'p1'">模块名称</th>
			            <th data-options="field:'p3', align:'center'">模块级别</th>
			            <th data-options="field:'p4', align:'right'">模块排序</th>
			            <th data-options="field:'addTime', align:'center', sortable:true">添加时间</th>
					</tr>
				</thead>
			</table> 
		</div>
	    <div class="div_window_foot" data-options="region:'south',border:false" style="padding: 4px;">
	        <a class="easyui-linkbutton" data-options="iconCls:'icon-reload'" onclick="jsAdmin.loadPriv();" style="width:80px">刷新</a>
	        <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="jsAdmin.updatePriv($(this));" style="width:80px">确定</a>
	    </div>
	</div>
</div>



<script type="text/javascript">
var jsAdmin = new JS_ADMIN();
jsAdmin.init();
jsAdmin.getPage(1, 20);
</script>

</body>
</html>



